Modern PyQt by Joshua Willman

Modern PyQt by Joshua Willman

Author:Joshua Willman
Language: eng
Format: epub
ISBN: 9781484266038
Publisher: Apress


Update the email for the customer with customer_id = 3:$ python3 view_database.py -q "UPDATE customers SET email = '[email protected]' WHERE customer_id = 3" "SELECT * from customers"

QSqlTableModel inherits from the QSqlQueryModel class, and therefore you can use setQuery() to update the data shown in the table view. It is generally a better practice to use other functions such as setTable() or setSort() if you already know which tables you want to view and edit. This is mostly due to how QSqlTableModel manages data shown in tabular form.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.